package com.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.mapper.UserMapper;
import com.demo.model.User;
import com.demo.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;

	@Override
	public void insert() {
		User user = new User();
		user.setUserId(123);
		user.setUserName("张三");
		user.setPassword("123");
		user.setPhone("120");
		userMapper.insert(user);
	}
}
